﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PBOffice.Models;
using PBOffice.DAL;

namespace PBOffice.BLL
{
    public class DeptManager
    {
        public int GetCountByParentId(int id)
        {
            return new DeptService().GetCountByParentId(id);
        }
        public List<Department> GetAllDepartment()
        {
            return new DeptService().GetAllDepartment();
        }
        public void AddDept(Department dep)
        {
            new DeptService().AddDept(dep);
        }
        public int GetIdByDeptName(string name)
        {
            return new DeptService().GetIdByDeptName(name);
        }
        public List<Department> GetAllDeptByParentId(int id)
        {
            return new DeptService().GetAllDeptByParentId(id);
        }


    }
}
